<template>
    <div class="sort-imgs">
        <div class="sort-img">
        <a href="#" style="float: left;">
          <img width="180" height="135" src="https://pic4.ajkimg.com/display/xinfang/d01cb63b8081d583c22b76cf9d5c740b/180x135m.jpg" alt="">
          <!-- <%=json.main_img_path%> -->
        </a>
        <div class="sort-img-content">
          <router-link :to="{name:'house',params:{id:house.ID}}" target="_blank"><h3 style="margin-top: 0px;"><span class="items-name">{{house.title}}</span></h3></router-link>
          <div class="junjia">均价：{{house.ave_price}}<span class="junjia-word"></span></div>
          <a href="#"><h4 style="margin-top: 0px;"><span class="items-name">[{{house.area_min}}-{{house.area_max}}  ] </span></h4></a>
          
          <a href="#"><h4 style="margin-top: 0px;"><span class="items-name">户型：{{house.position_main}}<span style="margin: 10px 20px 10px 5px;"></span><span>建筑面积：-/㎡</span></span></h4></a>
          <span class="tag span-green">高绿化率</span>
          <span class="tag">大型社区</span>
          <span class="tag">公园</span>
          <span class="tag">国际小区</span>
        </div>
        </div>
    </div>
</template>
<script type="text/javascript">
    export default{
      data (){
        return {
          house:this.$attrs['house']//获取attrs属性
        }
      }
    }
</script>